YPP_FILE=interpreterext
Y_FILE=programext

all: hw2
	
#handWrittenCode:
#hw2:  program.cpp list.cpp 
#	g++ program.cpp list.cpp -o hw1_1	

#parserGeneratedCode
hw2:  
	bison $(YPP_FILE).ypp
	bison -d $(Y_FILE).y
	flex $(Y_FILE).l
	gcc -c lex.yy.c
	g++ $(YPP_FILE).tab.cpp $(Y_FILE).cpp lex.yy.o -o hw2

clean:
	rm -rf *o hw2*
	rm -rf $(YPP_FILE).t*
	rm -rf $(Y_FILE).t*
	rm -rf lex.yy.c
